package com.oa.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;


import org.springframework.stereotype.Service;

import com.oa.bean.Leaves;
import com.oa.bean.User;
import com.oa.bean.UserAndSection;
import com.oa.dao.IndexDao;
import com.oa.service.ApplyService;
@Service
public class ApplyServiceImpl implements ApplyService {
	@Resource
	public IndexDao indexDao;
	
	public User queryByIdName(int id) {
		return indexDao.queryByIdName(id);
	}

	//登陆
	@Override
	public UserAndSection login(Map<String,Object> map) {
		// TODO Auto-generated method stub
		return indexDao.login(map);
	}

	@Override
	public List<UserAndSection> sectionList(int id) {
		
		return indexDao.sectionList(id);
	}
	//新增请假申请
	@Override
	public int addLeaves(Leaves lea) {
		// TODO Auto-generated method stub
		return indexDao.addLeaves(lea);
	}

	
	
	

}
